<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP '002.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<script type="text/javascript" src="js/jquery-easyui-1.2.6/jquery-1.7.2.min.js"></script>
	<link rel="stylesheet" type="text/css" href="js/jquery-easyui-1.2.6/themes/default/easyui.css" />
	<link rel="stylesheet" type="text/css" href="js/jquery-easyui-1.2.6/themes/icon.css" />
	<script type="text/javascript" src="js/jquery-easyui-1.2.6/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="js/jquery-easyui-1.2.6/locale/easyui-lang-zh_CN.js"></script>
	<script type="text/javascript">
	
			$(function(){
					$('#mywin').window({
						content:'我是窗口的内容' ,
						onOpen: function(){
							alert('窗口打开了');
						}
					});
					
					$('#btn').click(function(){
						$('#mywin').window('open');
					});
		});		
					
	</script>
	

  </head>
  
  <body>
  		<!-- 使用组件的方式： 1 html  2 js -->
    	
    	<div id="mywin" class="easyui-window" closed=true shadow=true draggable=true  resizable=true title="我的窗口" style="width:300px;height:300px"  ></div> 
    	<a id="btn" class="easyui-linkbutton">点击我</a>
    	
  </body>
</html>
